package com.example.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Comment {
    private Integer id; // 评论自增ID
    private String content; // 评论内容
    private Integer userId; // 发表评论的用户ID
    private Integer postId; // 评论所属的帖子ID
    private LocalDateTime createTime; // 评论创建时间

    private Users user;


}
